//
//  Seller_StockVC.m
//  HappyRent
//
//  Created by CoderYee on 2017/4/5.
//  Copyright © 2017年 内圈科技. All rights reserved.
//

#import "Seller_StockVC.h"
#import "YeeContainScrollView.h"
#import "Seller_Stock_SubsVC.h"
@interface Seller_StockVC ()

@end

@implementation Seller_StockVC

#pragma mark 初始化View
-(void)addOwnViews{
    
    [super addOwnViews];
    
    [self addContainView];
    
}
-(void)addNavbarView{
    
    [super addNavbarView];
    
    [self configNavigationBarRightTitle:@"发布"];
}
-(void)configOwnViews{
    
    [super configOwnViews];
}
#pragma mark 添加子类视图
-(void)addContainView{
    
    
    NSArray *titleArray=@[@"发布中",@"仓库中"];
    NSMutableArray  *views=[[NSMutableArray alloc] init];
    for (NSInteger i=0; i<2; i++) {
        
        Seller_Stock_SubsVC *Vc=[[Seller_Stock_SubsVC alloc] init];
        Vc.VcType=Stock_SubsVChaveType+i;
        [views addObject:Vc.view];
        [self addChildViewController:Vc];
        
    }
    YeeContainScrollView  *scollView=[[YeeContainScrollView alloc] initWithFrame:self.view.bounds  withViews:views withTitles:titleArray];
    [self.view addSubview:scollView];

}
//right事件处理
- (void)navigationBarRightButtonTapped:(UIButton *)sender
{
    
    
}
@end
